<template>
  <!-- <div class="tabbar">
    <router-link to="/home">首页</router-link>
    <router-link to="/tuan">爆爆团</router-link>
    <router-link to="/order">订单</router-link>
    <router-link to="/my">我的</router-link>
  </div> -->
  <van-tabbar v-model="active" route>
  <van-tabbar-item icon="home-o" to="/home">首页</van-tabbar-item>
  <van-tabbar-item icon="fire-o" to="/tuan">爆爆团</van-tabbar-item>
  <van-tabbar-item icon="orders-o" to="/order">订单</van-tabbar-item>
  <van-tabbar-item icon="user-o" to="/my">我的</van-tabbar-item>
</van-tabbar>
</template>

<script>
export default {
  data(){
    return {
      active:0
    }
  }
}
</script>

<style lang="scss">
.tabbar{
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    background-color: white;
    border-top: 1px solid #ccc;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    a.router-link-active{
        color: red;
    }
}
</style>